package com.itheima.mapper;

import com.itheima.pojo.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<Map<String, Object>> countStudentCountData();

    List<Map> countStudentDegreeData();

    void deleteByClazzIds(Integer id);

    List<Student> list();

    void deleteByIds(List<Integer> id);

    void insert(Student student);

    Student getById(Integer id);

    void updateById(Student student);

    void updateViolation(Integer id, Integer score);
}
